package com.springapp.mvc.dm;

import com.google.common.collect.Lists;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * Created by shangdong on 17/4/9.
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {
    private String username;
    private String password;


    public static User parseUser(String user){
        String[] split = user.split(",");
        return new User(split[0],split[1]);
    }

    public static List<User> getAllUsers(){
        return Lists.newArrayList(
//                new User("jiangweizheng12+37@gmail.com","123456789")//,
//                new User("fukeyu1213@gmail.com","123456789")
//                new User("fukeyu1213+1@gmail.com","123456789"),
//                new User("fukeyu1213+2@gmail.com","123456789"),
//                new User("fukeyu1213+3@gmail.com","123456789"),
//                new User("fukeyu1213+4@gmail.com","123456789"),
//                new User("fukeyu1213+5@gmail.com","123456789"),
//                new User("fukeyu1213+6w@gmail.com","123456789"),
//                new User("fukeyu1213+4we@gmail.com","123456789"),
//                new User("fukeyu1213+vu4@gmail.com","123456789"),
//                new User("fukeyu1213+144@gmail.com","123456789"),
//                new User("fukeyu1213+nhi@gmail.com","123456789"),
//                new User("fukeyu1213+jkh@gmail.com","123456789"),
//                new User("fukeyu1213+4@gmail.com","123456789"),
//                new User("fukeyu1213+nyt@gmail.com","123456789")

//                new User("fukeyu1213+mjgd@gmail.com","123456789"),
//                new User("fukeyu1213+mnhy@gmail.com","123456789"),
//                new User("fukeyu1213+mnbv@gmail.com","123456789"),
//                new User("fukeyu1213+nbvcd@gmail.com","123456789"),
//                new User("fukeyu1213+mutds@gmail.com","123456789"),
//                new User("fukeyu1213+nmhf@gmail.com","123456789"),
//                new User("fukeyu1213+mnjuy@gmail.com","123456789"),
//                new User("fukeyu1213+manjuy@gmail.com","123456789"),
//                new User("fukeyu1213+jhyas4@gmail.com","123456789"),
//                new User("fukeyu1213+mnbvy@gmail.com","123456789"),
                new User("fukeyu1213+tyuio@gmail.com","123456789")
                );
    }
//    new User("jiangweizheng12+37@gmail.com","123456789"),
//    new User("fukeyu1213+1@gmail.com","123456789"),
//    new User("fukeyu1213+2@gmail.com","123456789"),
//    new User("fukeyu1213+3@gmail.com","123456789"),
//    new User("fukeyu1213+4@gmail.com","123456789"),
//    new User("fukeyu1213+5@gmail.com","123456789")
}
